import http from "@/api";
import { PORT1 } from "@/api/config/servicePort";

// 获取角色列表
export const getRoleListApi = (params: any) => {
	return http.get(PORT1 + "/system/role/getRoleList", params, {});
};

// 新增角色
export const addRoleApi = (params: any) => {
	return http.post(PORT1 + "/system/role/addRole", params, {});
};

// 编辑角色
export const editRoleApi = (params: any) => {
	return http.post(PORT1 + "/system/role/editRole", params, {});
};

// 删除角色
export const deleteRoleApi = (params: any) => {
	return http.post(PORT1 + "/system/role/deleteRole", params, {});
};
